package com.hbt.user_consumer.service;

import com.hbt.api.entity.CommonResult;
import com.hbt.api.entity.MulFileAndToken;
import com.hbt.api.entity.User;
import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.support.SpringEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

@FeignClient(value = "user-provider")
@RequestMapping("user_provider")
public interface UserServiceFeign {
    @RequestMapping(value = "dologin", method = RequestMethod.POST)
    public CommonResult dologin(User user);

    @PostMapping(value = "getUserByUsername")
    public CommonResult getUserByUsername(String token);





}
